package cn.bytets.rpc.api.message;

import java.io.Serializable;
import java.util.concurrent.CompletionStage;
import java.util.concurrent.Future;

/**
 * 返回的结果集
 */
public interface Result extends CompletionStage<Result>, Future<Result>,Serializable {


    public Object getValue();

    public void setValue(Object value);

    public Throwable getException();

    public void setException(Throwable exception);

    public boolean hasException();

    public Object recreate() throws Throwable;
}
